package com.itheima.jz;

public class Demo04swap {
    public static void main(String[] args) {
        int[] arr = {11,22,33,66,44,55};
        int i = 0,j = arr.length-1;
        while (i < j){
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
            i++;
            j--;
        }
        for (int k = 0; k < arr.length; k++) {
            System.out.println(arr[k]);
        }
    }
}
